import java.awt.*;
import javax.swing.*;

public class Periode extends JPanel {
	public Periode() {
		this.setLayout(new GridLayout(1,0));
		this.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.BLACK));
	}
	
	public Periode(Cours cours) {
		this();
		add(cours);
	}
	
	public void add(Cours cours)
	{
		super.add(cours);
		this.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 0, Color.BLACK));
	}
}
